import com.sun.security.jgss.GSSUtil;

//public class Test {
//    public static void main(String[] args) {
//    }
//}
//
//class Student{
//    String Name;
//    int Number;
//    String Birthday;
//    String College;
//    class Undergraduate{
//        String Counselor;
//    }
//    class Graduate{
//        String supervisor;
//    }
//
//}

class Student {
    private String studentId;
    private String name;
    private String birthDate;
    private String department;

    public Student(String studentId, String name, String birthDate, String department) {
        this.studentId = studentId;
        this.name = name;
        this.birthDate = birthDate;
        this.department = department;
    }

    public String getInfo() {
        return "Student ID: " + studentId + "\nName: " + name + "\nBirth Date: " + birthDate + "\nDepartment: " + department;
    }
}

class Undergraduate extends Student {
    private String counselor;

    public Undergraduate(String studentId, String name, String birthDate, String department, String counselor) {
        super(studentId, name, birthDate, department);
        this.counselor = counselor;
    }

    @Override
    public String getInfo() {
        return super.getInfo() + "\nCounselor: " + counselor;
    }
}

class Graduate extends Student {
    private String supervisor;

    public Graduate(String studentId, String name, String birthDate, String department, String supervisor) {
        super(studentId, name, birthDate, department);
        this.supervisor = supervisor;
    }

    @Override
    public String getInfo() {
        return super.getInfo() + "\nSupervisor: " + supervisor;
    }
}

public class Test {
    public static void main(String[] args) {
        Undergraduate undergrad = new Undergraduate("12345", "John Doe", "2000-01-01", "Computer Science", "Dr. Smith");
        Graduate grad = new Graduate("67890", "Jane Doe", "1998-05-15", "Physics", "Prof. Johnson");

        System.out.println("Undergraduate Info:");
        System.out.println(undergrad.getInfo());
        System.out.println("\nGraduate Info:");
        System.out.println(grad.getInfo());
    }
}


